package com.huluobo.lc.kotlinim1803a.contract.register

import com.huluobo.lc.kotlinim1803a.contract.BasePresenter

/**
 * @author Lc
 * @description: 注册协议,P层负责逻辑功能,V层负责界面显示
 * @date :2020/9/14 15:13
 */
interface RegisterContract {
    interface Presenter : BasePresenter {
        fun register(userName: String, password: String, confirmPassword: String)
    }

    interface View {
        fun onUserNameError()
        fun onPasswordError()
        fun onConfirmPasswordError()
        fun onStartRegister()
        fun onRegisterSuccess()
        fun onRegisterFailed(message: String)
        fun onUserExist()
    }
}